<template>
  <div class="container">
    <div class="bottom_t">甘孜祥和汽车制造厂</div>
    <div class="re_bottom_line">
      <div class="re_bottom_line_left">
        <svg-icon name="jiantou" width="38px" height="38px"></svg-icon>
      </div>
      <div class="re_bottom_line_right">目标地域数据</div>
    </div>
    <div class="please_inp">请输入相关数据：</div>
    <div class="table">
      <el-table
        border
        style="width: 100%; height: 100%; background: #072658"
        :data="tableData"
      >
        <el-table-column type="index" label="序号" width="128" align="center" />
        <el-table-column
          label="指标名称"
          width="401"
          align="center"
          prop="nameOfindex"
        />
        <el-table-column
          label="指标单位"
          width="218"
          align="center"
          prop="indicatorUnit"
        />
        <el-table-column label="数据" width="259" align="center" prop="data" />
        <el-table-column
          label="指数属性"
          width="242"
          align="center"
          prop="indexAttribute"
        />
        <el-table-column label="操作" align="center">
          <template #default="row">
            <div class="end">
              <div class="edit">编辑</div>
              <div class="delete">删除</div>
            </div>
          </template>
        </el-table-column>
      </el-table>
    </div>
    <div class="bott_fye">
      <div class="pagination_botfye">
        <el-pagination
          v-model:current-page="currentPage"
          v-model:page-size="pageSize"
          :page-sizes="[1, 2, 3, 4]"
          :background="true"
          layout="prev, pager, next, jumper,total,sizes "
          :total="20"
        />
      </div>
      <div class="tijiao">
        <svg-icon name="tijiao" width="144px" height="42px"></svg-icon>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const tableData = ref([
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
  {
    nameOfindex: '总地域面积',
    indicatorUnit: '平方千米',
    data: '2429.66',
    indexAttribute: '预期性指标',
  },
])
const currentPage = ref<number>(1)
const pageSize = ref<number>(12)
</script>

<style scoped lang="scss">
.container {
  width: 100%;
  height: 100%;
  .bottom_t {
    padding-top: 16px;
    margin-top: 19px;
    margin-left: 536px;
    margin-bottom: 17px;
    width: 545px;
    height: 54px;
    background: url('@/assets/images/xiangmumingkuang.png') no-repeat;
    font-size: 28px;
    color: #d9f3f5;
    line-height: 28px;
    text-align: center;
    // background: pink;
  }
  .re_bottom_line {
    padding-top: 1px;
    display: flex;
    align-items: center;
    width: 100%;
    height: 46px;
    background: url('@/assets/images/biaotikua.png') no-repeat;
    background-size: 100% 100%;
    .re_bottom_line_left {
      margin-left: 15px;
      margin-right: 5px;
      width: 30px;
      height: 30px;
      // background: pink;
    }
    .re_bottom_line_right {
      width: 136px;
      height: 20px;
      // background: green;
      font-size: 20px;
      line-height: 23px;
    }
  }
  .please_inp {
    margin-top: 11px;
    margin-left: 17px;
    font-size: 14px;
    color: rgba(226, 247, 248, 0.66);
    line-height: 16px;
  }
  .table {
    margin-top: 11px;
    margin-left: 16px;
    width: 1585px;
    height: 650px;
    // background: pink;
    .el-table tr {
      background: #072658;
    }
    :deep(.el-table_1_column_1.is-leaf.el-table__cell) {
      background: #072658;
    }
    :deep(.el-table_1_column_2.is-leaf.el-table__cell) {
      background: #072658;
    }
    :deep(.el-table_1_column_3.is-leaf.el-table__cell) {
      background: #072658;
    }
    :deep(.el-table_1_column_4.is-leaf.el-table__cell) {
      background: #072658;
    }
    :deep(.el-table_1_column_5.is-leaf.el-table__cell) {
      background: #072658;
    }
    :deep(.el-table_1_column_6.is-leaf.el-table__cell) {
      background: #072658;
    }
    :deep(.el-table__border-left-patch, .el-table__border-left-patch) {
      // background-color: #115EB2 ;
      border: 1px solid #115eb2;
    }
    :deep(.el-table__inner-wrapper::before) {
      // background-color: #115EB2 ;
      border: 1px solid #115eb2;
    }
    :deep(.el-table) {
      border: 3px solid rgba(17, 94, 178, 0.8);
    }
    :deep(.el-table__header-wrapper th) {
      border: 3px solid rgba(17, 94, 178, 0.8);
    }
    :deep(.el-table__body-wrapper td) {
      border: 3px solid rgba(17, 94, 178, 0.8);
    }
    :deep(.el-table__row) {
      background: #072658;
      height: 50px;
    }
    .end {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      .edit {
        padding-top: 8px;
        margin-left: 78px;
        margin-right: 40px;
        // margin-top: 8px;
        width: 52px;
        height: 25px;
        background: #246b94;
        font-size: 18px;
        color: #def7ff;
        line-height: 7px;
        text-align: center;
      }
      .delete {
        // margin-top: 8px;
        width: 52px;
        height: 25px;
        font-size: 18px;
        color: #def7ff;
        line-height: 21px;
        background: #a53b4d;
      }
    }
    :deep(.el-table__body tr:hover > td) {
      background-color: inherit; /* 使用 inherit 让背景颜色继承父元素，即保持原有背景颜色 */
    }
    :deep(.el-table) {
      color: #c6eefb; // 设置为你想要的颜色，这里以 #DEF7FF 为例
    }
  }
  .bott_fye {
    display: flex;
    justify-content: space-between;
    margin-left: 16px;
    width: 1585px;
    height: 28px;
    // background: pink;
    .pagination_botfye {
      margin-left: 530px;
      // :deep(.el-pagination.is-background .btn-prev){
      //   background: transparent;
      // }
      // :deep(.el-pagination.is-background .btn-next){
      //   background: transparent;
      // }
    }
    .tijiao {
      width: 144px;
      height: 42px;
      // background: red;
    }
  }
}
</style>
